Ext.define('Emp.view.unit.Edit', {
	extend: 'Emp.view.BaseEdit',
	alias: 'widget.unitedit',
	
	requires: ['Emp.store.Status'],

	width: 300,
	height: 280,
	
	initComponent: function() {
		var me = this;
		
		me.items = [{
			xtype: 'form',
			border: false,
			bodyPadding: 5,
			layout: 'anchor',
			defaults: {
				labelAlign: 'right',
				labelWidth: 60,
				anchor: '95%'
			},
			defaultType: 'textfield',
			items: [{
					fieldLabel: 'id',
					name: 'id',
					hidden: true
				}, {
					fieldLabel: '英文名',
					name: 'enName',
					allowBlank: false
				}, {
					fieldLabel: '中文名',
					name: 'cnName',
					allowBlank: false
				}, {
					fieldLabel: '状态',
		            name: 'status',
		            xtype: 'combobox',
					store: Ext.create('Emp.store.Status'),
					queryMode: 'local',
					displayField: 'display',
					valueField: 'value',
					forceSelection: true,
					allowBlank: false
				}, {
					fieldLabel: '排序',
					name: 'sort',
					xtype: 'numberfield',
					hideTrigger: true,
					allowDecimals:false,
					allowBlank: false
			}]
		}];
		me.callParent();
	}
});